package com.wwwarehouse.resource_center.bean.goods;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Joseph on 2017/9/14.
 *         <p/>
 */

public class CategoryBean implements Parcelable {

    private List<EmptyIdentifierBean> emptyIdentifier;

    public List<EmptyIdentifierBean> getEmptyIdentifier() {
        return emptyIdentifier;
    }

    public void setEmptyIdentifier(List<EmptyIdentifierBean> emptyIdentifier) {
        this.emptyIdentifier = emptyIdentifier;
    }

    public static class EmptyIdentifierBean implements Parcelable {
        /**
         * categoryTreeUkid : 44202
         * categoryUkid : 52852
         * childNodeCount : 41817
         * leafNode : 测试内容h338
         * level : 83661
         * metaCategoryUkid : 42604
         * name : 测试内容7u16
         * parentMetaCategoryUkid : 45038
         * source : 测试内容7noo
         */

        private String categoryTreeUkid;
        private String categoryUkid;
        private String childNodeCount;
        private String leafNode;
        private String level;
        private String metaCategoryUkid;
        private String name;
        private String parentMetaCategoryUkid;
        private String source;

        public String getCategoryTreeUkid() {
            return categoryTreeUkid;
        }

        public void setCategoryTreeUkid(String categoryTreeUkid) {
            this.categoryTreeUkid = categoryTreeUkid;
        }

        public String getCategoryUkid() {
            return categoryUkid;
        }

        public void setCategoryUkid(String categoryUkid) {
            this.categoryUkid = categoryUkid;
        }

        public String getChildNodeCount() {
            return childNodeCount;
        }

        public void setChildNodeCount(String childNodeCount) {
            this.childNodeCount = childNodeCount;
        }

        public String getLeafNode() {
            return leafNode;
        }

        public void setLeafNode(String leafNode) {
            this.leafNode = leafNode;
        }

        public String getLevel() {
            return level;
        }

        public void setLevel(String level) {
            this.level = level;
        }

        public String getMetaCategoryUkid() {
            return metaCategoryUkid;
        }

        public void setMetaCategoryUkid(String metaCategoryUkid) {
            this.metaCategoryUkid = metaCategoryUkid;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getParentMetaCategoryUkid() {
            return parentMetaCategoryUkid;
        }

        public void setParentMetaCategoryUkid(String parentMetaCategoryUkid) {
            this.parentMetaCategoryUkid = parentMetaCategoryUkid;
        }

        public String getSource() {
            return source;
        }

        public void setSource(String source) {
            this.source = source;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.categoryTreeUkid);
            dest.writeString(this.categoryUkid);
            dest.writeString(this.childNodeCount);
            dest.writeString(this.leafNode);
            dest.writeString(this.level);
            dest.writeString(this.metaCategoryUkid);
            dest.writeString(this.name);
            dest.writeString(this.parentMetaCategoryUkid);
            dest.writeString(this.source);
        }

        public EmptyIdentifierBean() {
        }

        protected EmptyIdentifierBean(Parcel in) {
            this.categoryTreeUkid = in.readString();
            this.categoryUkid = in.readString();
            this.childNodeCount = in.readString();
            this.leafNode = in.readString();
            this.level = in.readString();
            this.metaCategoryUkid = in.readString();
            this.name = in.readString();
            this.parentMetaCategoryUkid = in.readString();
            this.source = in.readString();
        }

        public static final Creator<EmptyIdentifierBean> CREATOR = new Creator<EmptyIdentifierBean>() {
            @Override
            public EmptyIdentifierBean createFromParcel(Parcel source) {
                return new EmptyIdentifierBean(source);
            }

            @Override
            public EmptyIdentifierBean[] newArray(int size) {
                return new EmptyIdentifierBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeList(this.emptyIdentifier);
    }

    public CategoryBean() {
    }

    protected CategoryBean(Parcel in) {
        this.emptyIdentifier = new ArrayList<EmptyIdentifierBean>();
        in.readList(this.emptyIdentifier, EmptyIdentifierBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<CategoryBean> CREATOR = new Parcelable.Creator<CategoryBean>() {
        @Override
        public CategoryBean createFromParcel(Parcel source) {
            return new CategoryBean(source);
        }

        @Override
        public CategoryBean[] newArray(int size) {
            return new CategoryBean[size];
        }
    };
}
